package com.xuxin.baby.contract;

import com.xuxin.baby.bean.BaseBean;
import com.xuxin.baby.bean.UserDataBean;
import com.xuxin.baby.presenter.UserPresenter;

/**
 * Created by xu_xin
 * Created on 2020/10/23 0023
 * 个人信息
 */
public interface UserContract {

    interface Model {

        void getUserData(UserPresenter presenter, String tenantId, String token, String memberId);

        void uploadAvatar(UserPresenter presenter, String tenantId, String token, String memberId, String avatar);

        void updateUserData(UserPresenter presenter, String tenantId, String token, String memberId, String mobile, String avatar,
                            String nick, String birthday, String nation, String role, String birthAddress, String address);
    }

    interface View extends BaseContract.view {

        void onSuccess(UserDataBean userDataBean);

        void onImageSuccess(BaseBean baseBean);

        void onSuccess(BaseBean baseBean);
    }

    interface Presenter extends BaseContract.presenter {

        void getUserData(String tenantId, String token, String memberId);

        void uploadAvatar(String tenantId, String token, String memberId, String avatar);

        void updateUserData(String tenantId, String token, String memberId, String mobile,String avatar,
                            String nick, String birthday, String nation, String role, String birthAddress, String address);

        void onSuccess(UserDataBean userDataBean);

        void onImageSuccess(BaseBean baseBean);

        void onSuccess(BaseBean baseBean);
    }
}